﻿// -----------------------------------------------------------------------
//  <copyright file="UserClaimConfiguration.cs" company="LiuliuSoft">
//      Copyright (c) 2025 66SOFT. All rights reserved.
//  </copyright>
//  <site>https://ifs.66soft.net</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025-10-17 15:10</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Identity.Domain.Entities;


namespace DaprPlus.Identity.Infrastructure.EntityFrameworkCore.Configurations;

public class UserClaimConfiguration : EntityConfigurationBase<UserClaim>
{
    /// <summary>
    /// 重写以实现实体类型各个属性的数据库配置
    /// </summary>
    /// <param name="builder">实体类型创建器</param>
    public override void Configure(EntityTypeBuilder<UserClaim> builder)
    {
        builder.HasQueryFilter(m => m.User.DeletedTime == DateTime.MinValue);
    }
}